<?php use_helper('I18N') ?>
<div id="userMng">
    <?php use_helper('crossAppLink') ?>
    <?php if ($sf_user->isAuthenticated()): ?>
    <?php $user = $sf_user->getUserProfile()?>
     <span id="userInfo"><?php echo __('User: '). $user->name?>
     </span>
    <?php endif;?>
    <span id="linksConn">
    <?php if ($sf_user->isAuthenticated()): 
	     	  //echo link_to('<img title="'.__('Back to main application').'" src="/images/icons/32/backoffice.png"></img>', cross_app_link_to('frontend', '@homepage')) ; 
			  echo link_to('<img title="'.__('Log out').'" src="/images/icons/16/logout.png"></img>', 'connexionAppli/logout');?>
	<?php else:?>
		 	<?php print link_to('<img title="'.__('Log in').'" src="/images/icons/32/login.png"></img>', 'connexionAppli/login'); ?>
	<?php endif;?>
	    
    </span>
</div>